package com.qf.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lcx
 * @since 2020-09-03
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class Cart implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    private Integer uid;

    private Integer count;

    private BigDecimal amount;

    public Cart(Integer uid) {
        this.uid = uid;
    }

    public Cart(Integer id, Integer uid, Integer count, BigDecimal amount) {
        this.id = id;
        this.uid = uid;
        this.count = count;
        this.amount = amount;
    }

    public Cart() {
    }
}
